<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>递归参数</title>
</head>
<body>
<script>
function num(i) {
    if (i == 1){
        return 1;
    }else {
        return i * num(i-1)
    }

}
console.log(num(5));
</script>
</body>
</html>